package com.cotte.flow.util;

/**
 * Created by zhuang on 2019/1/3.
 */
public enum CodeEnum implements CodeMessage<Integer>{

    error(100, "ERROR"),
    error_http(101, "请求失败。"),
    error_xxx(102, "请求再次失败。"),
    success(200, "OK");

    Integer code;
    String message;

    CodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

}